<%@ page errorPage="UserExceptionHandler.jsp"%>
<%@page import="com.ecable.util.UtilConstants"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%
	if (session.getAttribute("user") == null) {

		RequestDispatcher rd = request
				.getRequestDispatcher("./LoginForm.jsp");
		rd.forward(request, response);
%>
<%
	}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>


	
	<head>
	</head>
	<body">
		<jsp:include page="Header.jsp"></jsp:include>
		<br />
		<table align="center" border="1" bgcolor="" width="60%"
			cellpadding="10">
			<caption>
				DISTRICTS INFORMATION OF E-CABLE
			</caption>

			<tr bgcolor="ashblue">
				<i>District Information </i>
			</tr>
			<tr>
				<th>
					<b>District Id</b>
				</th>
				<th>
					<b>State Name</b>
				</th>
				<th>
					<b>District Name</b>
				</th>
				<th>
					<b>More Actions</b>
				</th>
			</tr>
			<c:if test="${not empty DistrictVector}">
				<c:forEach var="district" items="${DistrictVector}">
					<tr>
						<td>
						<c:if test="${sessionScope.role=='Admin'}">
							<a href="./DistrictUpdationAction?did=${district.did }">${district.did}</a>
							</c:if>
						</td>
						<td>
							${district.sname }
						</td>
						<td>
							${district.dname }
						</td>
						<td>
							<a href="./CancelDistrictAction?did=${district.did }">Cancel</a>
						</td>
					</tr>
				</c:forEach>
			</c:if>
		</table>
		<br />
		<br />
		<center>
			<a href="./ViewStatesAction">Add New District</a>
		</center>
		<br />
		<br />
		<br />


		Note:Click On DistrictID to Update

		<br />
		<br />



		<br />
		<br />
		<br />
		<jsp:include page="./Footer.jsp"></jsp:include>
	</body>
</html>
